(function(angular) {
	"use strict";
	angular.module("fs.waf").factory("payDdaService", payDdaService);
	payDdaService.$inject = [ "$q", "ajaxServiceFactory"];
	function payDdaService($q, ajaxServiceFactory) {
		
		function getCurrencyOptions(){
			var ajaxService = ajaxServiceFactory.buildAjaxService({
				getCurrencyOptions : {
					url : "do/cda/dataList/currenciesBySiteCode",
					method : "get"
				}
			}), defer = $q.defer();
			ajaxService.getCurrencyOptions().then(function(response) {
				defer.resolve(response ? response.data : []);
			}, angular.noop);
			return defer.promise;
		};
		
		return {
			getCurrencyOptions : getCurrencyOptions
		};
	}
})(angular);